import request from '@/utils/request'

// 查询会员设置列表
export function listMemberConfig(query) {
  return request({
    url: '/memberConfig/memberConfig/list',
    method: 'get',
    params: query
  })
}

// 查询会员设置详细
export function getMemberConfig(id) {
  return request({
    url: '/memberConfig/memberConfig/' + id,
    method: 'get'
  })
}

// 新增会员设置
export function addMemberConfig(data) {
  return request({
    url: '/memberConfig/memberConfig',
    method: 'post',
    data: data
  })
}

// 修改会员设置
export function updateMemberConfig(data) {
  return request({
    url: '/memberConfig/memberConfig',
    method: 'put',
    data: data
  })
}

// 删除会员设置
export function delMemberConfig(id) {
  return request({
    url: '/memberConfig/memberConfig/' + id,
    method: 'delete'
  })
}
